projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4acb56d
)
testsuite: Destroy surfaces
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 16 May 2020 13:09:26 +0000
(09:09 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 16 May 2020 13:12:18 +0000
(09:12 -0400)
If we don't destroy the surface, it leaks.
GDK backends keep an extra reference on the
surface for the external resources associated
with it, and only drop it in destroy().
testsuite/gtk/shortcuts.c
patch
|
blob
|
history
diff --git
a/testsuite/gtk/shortcuts.c
b/testsuite/gtk/shortcuts.c
index 207970e6ea7930c3f8631a66fb1bfe58c65d54b5..887d53b3b08caf9656b7bdd00341f2588419e6ec 100644
(file)
--- a/
testsuite/gtk/shortcuts.c
+++ b/
testsuite/gtk/shortcuts.c
@@
-356,6
+356,7
@@
test_trigger_trigger (void)
gdk_event_unref (event);
}
+ gdk_surface_destroy (surface);
g_object_unref (surface);
g_object_unref (trigger[0]);